import { useState } from 'react'

import Comp1 from "@/components/Comp1"
import Comp2 from "@/components/Comp2"
import { StepBackwardOutlined } from '@ant-design/icons';
import { Button, Space } from 'antd';

import { Outlet, Link, useRoutes } from "react-router-dom"
import router from './router';

function App() {
  const [count, setCount] = useState(0)
  const outlet = useRoutes(router)
  return (
    <div className="App">
     
      {/*
      占位符组件 组件写法
      <Outlet></Outlet> */}

      {outlet}
    </div>
  )
}

export default App
